package xdu.lz.stage2_design_pattern.chapter3_observer_pattern.observerApp1;

public class ObserverClient {
    public static void main(String[] args) {
        final Subject subject = new Subject();
        new BinaryObserver(subject);
        new OctalObserver(subject);
        subject.setState(10);
        System.out.println("=========");
        subject.setState(10);
        System.out.println("=========");
        subject.setState(15);
    }
}
